package jourre;

import cn.hutool.core.io.FileUtil;
import utils.SmallTool;

import java.util.List;
import java.util.Optional;

/**
 * @Author: gcr
 * @Date: 2022-6-1 14:04
 */
public class compareca {
    public static void main(String[] args) {
        List<String> ZFL = FileUtil.readLines("F:\\qfworkspace\\idea\\update-pm-data\\src\\main\\java\\jourre\\two.txt", "UTF-8");
        List<String> ME = FileUtil.readLines("F:\\qfworkspace\\idea\\update-pm-data\\src\\main\\java\\jourre\\发文占比结果Map.log", "UTF-8");

        if (ZFL.size() != ME.size()) {

            System.out.println("数量不等");
        }
        for (String s : ZFL) {
            Optional<String> first = ME.stream().filter(O -> O.equals(s)).findFirst();
            if (first.isPresent()) {

            } else {
                SmallTool.printMessError("wo 没有啊++" + s);
            }

        }
        for (String s : ME) {
            Optional<String> first = ZFL.stream().filter(O -> O.equals(s)).findFirst();
            if (first.isPresent()) {

            } else {
                SmallTool.printMessError("zfl没有啊++" + s);
            }

        }

    }
}
